package org.yoao.crm.page;

import java.util.List;
import java.util.Map;

import org.yoao.crm.business.impl.CompanyServiceImpl;
import org.yoao.crm.business.service.ICompanyService;
import org.yoao.crm.page.framework.AbstractViewPage;

/**
 * @author yxwonline.com
 * @description 
 * @date 2010-7-31 下午10:22:48
 */
public class CompanyPage extends AbstractViewPage {
	private ICompanyService companyService = new CompanyServiceImpl();
	
	@Override
	protected List queryPageList(int startRow, int endRow, Map map) throws Exception{
		return companyService.view(startRow, endRow, map);
	}

	@Override
	protected int queryTotalRows(Map map) throws Exception{
		return companyService.getDataCount(map);
	}
}